|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectimageware.FMath
public final class FMath
Class FMath.
The FMath class provides methods for carrying out a number of
elementary mathematical operations.
| Constructor Summary | |
|---|---|
FMath()
|
|
| Method Summary | |
|---|---|
static int |
ceil(double d)
Returns the smallest integral value that is not less than the argument. |
static int |
ceil(float f)
Returns the smallest integral value that is not less than the argument. |
static int |
floor(double d)
Returns the largest integral value that is not greater than the argument. |
static int |
floor(float f)
Returns the largest integral value that is not greater than the argument. |
static double |
max(double d1,
double d2)
Returns the maximum value of the two arguments. |
static float |
max(float f1,
float f2)
Returns the minimum value of the two arguments. |
static double |
min(double d1,
double d2)
Returns the minimum value of the two arguments. |
static float |
min(float f1,
float f2)
Returns the minimum value of the two arguments. |
static int |
round(double d)
Returns the integral value closest to the argument. |
static int |
round(float f)
Returns the integral value closest to the argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FMath()
| Method Detail |
|---|
public static int floor(float f)
public static int floor(double d)
public static int ceil(float f)
public static int ceil(double d)
public static int round(float f)
public static int round(double d)
public static float min(float f1,
float f2)
public static double min(double d1,
double d2)
public static float max(float f1,
float f2)
public static double max(double d1,
double d2)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||